package com.kbckbc.easyhangul;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class WritingDBHelper extends SQLiteOpenHelper {

	@Override
	public void onCreate(SQLiteDatabase arg0) {
		arg0.execSQL(Query.createDB);
	}

	@Override
	public void onUpgrade(SQLiteDatabase arg0, int arg1, int arg2) {
		arg0.execSQL(Query.dropDB);
		onCreate(arg0);

	}
	
	public WritingDBHelper(Context context, String dbFileName) {
		super(context, dbFileName, null, 1);
	}

}
